<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    html,
    body {
      width: 100%;
      height: 100%;
    }
    @font-face {
      font-family: "iconfont"; /* Project id 2516453 */
      src: url("//at.alicdn.com/t/font_2516453_g6qjhhqblt9.woff2?t=1620545333370")
          format("woff2"),
        url("//at.alicdn.com/t/font_2516453_g6qjhhqblt9.woff?t=1620545333370")
          format("woff"),
        url("//at.alicdn.com/t/font_2516453_g6qjhhqblt9.ttf?t=1620545333370")
          format("truetype");
    }
    .iconfont {
      font-family: "iconfont" !important;
      font-size: 16px;
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      -webkit-text-stroke-width: 0.2px;
      -moz-osx-font-smoothing: grayscale;
    }
    .ad {
      width: 400px;
      background-color: #fff;
      border-radius: 8px;
      box-sizing: border-box;
      height: 56px;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      font-size: 16px;
      color: #353535;
      cursor: pointer;
      box-shadow: 2px 1px 8px 1px rgb(228, 232, 235);
      margin: 40px auto; 
    }
    @keyframes marquee {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-100%);
      }
    }
    .ad i {
      color: #ff6146;
      font-size: 20px;
      margin-right: 10px;
    }
    .content {
      flex: 1;
      overflow: hidden;
    }
    .content span {
      display: block;
      width: auto;
      white-space: nowrap;
      animation: marquee 30s linear infinite;
      padding-left: 105%;
      padding-right: 120%;
    }
    .content span:hover {
      animation-play-state: paused;
    }
  </style>
  <body>
    <div class="ad">
      <i class="iconfont">&#xe633;</i>
      <p class="content">
        <span>重要通知：掘金创作者服务中心上线，速度过来体验一下吧！ </span>
      </p>
    </div>
  </body>
</html>
